/**
 * Tractus-X -  Digital Product Pass Application
 *
 * Copyright (c) 2022, 2024 BMW AG
 * Copyright (c) 2022, 2024 Henkel AG & Co. KGaA
 * Copyright (c) 2023, 2024 CGI Deutschland B.V. & Co. KG
 * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation
 *
 * See the NOTICE file(s) distributed with this work for additional
 * information regarding copyright ownership.
 *
 * This program and the accompanying materials are made available under the
 * terms of the Apache License, Version 2.0 which is available at
 * https://www.apache.org/licenses/LICENSE-2.0.
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
 * either express or implied. See the
 * License for the specific language govern in permissions and limitations
 * under the License.
 *
 * SPDX-License-Identifier: Apache-2.0
 */

.loading-container {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  .title {
    font-size: 24px;
  }
  .timeline-container {
    width: 60vw;
    padding: 0 0 0 18vw;
    .text-caption-container {
      width: 25vw;
      line-break: anywhere;
    }
  }
  .dpp-id-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 34px;
    width: 60vw;

    .dpp-id {
      font-size: 20px;
      font-weight: bold;
      line-height: 56px;
    }
  }

  .stepper-step {
    display: flex;
    align-items: center;
  }

  .stepper-circle {
    position: absolute;
    left: 650px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #4caf50;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
  }

  .stepper-circle.completed {
    background-color: grey;
  }

  .tick {
    color: white;
    font-size: 14px;
  }

  .completed-step {
    color: grey;
  }
  .loading-info {
    display: flex;
    flex-direction: column;
  }
  .stepper-line {
    height: 2px;
    background-color: #0f71cb;
    transition: width 0.5s;
  }
  .step-status {
    margin-top: 10px;
    text-align: center;
  }
}

@media (max-width: 628px) {
  .loading-container {
    width: 90vw;

    .timeline-container {
      padding: 0px;
      width: 100vw;
      .text-caption-container {
        width: 50vw;
        line-break: anywhere;
      }
    }
    .step-title {
      font-size: 16px;
    }
    .dpp-id-container {
      width: 100vw;
      text-align: center;

      .dpp-id {
        font-size: 14px;
        font-weight: bold;
        line-height: 56px;
      }
    }
  }
}

@media (max-width: 300px) {
  .loading-container {
    .dpp-id-container {
      margin-top: 50px;
    }
  }
}
